package com.qyhl.webtv.commonlib.entity.act;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class ActivityLiveBean implements Parcelable {
    /**
     * id : 540
     * siteId : null
     * chatroomId : 7dfc02c9de3dccc
     * streamAddressName : null
     * pushUrl : null
     * hlsUrl : null
     * rtmpUrl : null
     * title : 一个图文预告
     * digest :
     * coverPic : http://vod.127.i2863.com/1ed27ab2-11b7-43ca-9478-7456accb6828.jpg
     * advPic :
     * advUrl : null
     * hits : 3709
     * love : 0
     * type : 0
     * status : 6
     * contentRule : 0
     * createtime : 2018-06-07 10:09:10
     * starttime : 2019-06-05 12:08:47
     * endtime : null
     * creator : 13980974244
     * creatorAvatar : http://images-cdn.adun.ccsobey.com/0085fa01329849518925395d1a08ec5f.jpg
     * author : null
     * noticeUrl : null
     * playBackStartTimne : null
     * playBackEndTime : null
     * playBackUrl : null
     * isFakeHits : 1
     * shareUrl : null
     * shareQrcode : null
     * isTop : null
     * topDeadTime : null
     * number : 0
     * isFollow : 0
     * isMultiAdress : 0
     * streamAdress : null
     * isContent : 1
     * isChatRoom : 1
     * isDescription : 0
     * encodeHlsUrl : null
     */

    private int id;
    private Integer siteId;
    private String chatroomId;
    private String streamAddressName;
    private String pushUrl;
    private String hlsUrl;
    private String rtmpUrl;
    private String title;
    private String digest;
    private String coverPic;
    private String advPic;
    private String advUrl;
    private String hits;
    private String love;
    private String type;
    private String status;
    private String contentRule;
    private String createtime;
    private String starttime;
    private String endtime;
    private String creator;
    private String creatorAvatar;
    private String author;
    private String noticeUrl;
    private String playBackStartTimne;
    private String playBackEndTime;
    private String playBackUrl;
    private int isFakeHits;
    private String shareUrl;
    private String shareQrcode;
    private String isTop;
    private String topDeadTime;
    private int number;
    private int isFollow;
    private int isMultiAdress;
    private List<StreamAdress> streamAdress;

    private int isContent;

    private int isChatRoom;

    private int isDescription;

    public List<StreamAdress> getStreamAdress() {
        return streamAdress;
    }

    public void setStreamAdress(List<StreamAdress> streamAdress) {
        this.streamAdress = streamAdress;
    }

    private String encodeHlsUrl;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Integer getSiteId() {
        return siteId;
    }

    public void setSiteId(Integer siteId) {
        this.siteId = siteId;
    }


    public String getChatroomId() {
        return chatroomId;
    }

    public void setChatroomId(String chatroomId) {
        this.chatroomId = chatroomId;
    }

    public String getStreamAddressName() {
        return streamAddressName;
    }

    public void setStreamAddressName(String streamAddressName) {
        this.streamAddressName = streamAddressName;
    }

    public String getPushUrl() {
        return pushUrl;
    }

    public void setPushUrl(String pushUrl) {
        this.pushUrl = pushUrl;
    }

    public String getHlsUrl() {
        return hlsUrl;
    }

    public void setHlsUrl(String hlsUrl) {
        this.hlsUrl = hlsUrl;
    }

    public String getRtmpUrl() {
        return rtmpUrl;
    }

    public void setRtmpUrl(String rtmpUrl) {
        this.rtmpUrl = rtmpUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDigest() {
        return digest;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }

    public String getCoverPic() {
        return coverPic;
    }

    public void setCoverPic(String coverPic) {
        this.coverPic = coverPic;
    }

    public String getAdvPic() {
        return advPic;
    }

    public void setAdvPic(String advPic) {
        this.advPic = advPic;
    }

    public String getAdvUrl() {
        return advUrl;
    }

    public void setAdvUrl(String advUrl) {
        this.advUrl = advUrl;
    }

    public String getHits() {
        return hits;
    }

    public void setHits(String hits) {
        this.hits = hits;
    }

    public String getLove() {
        return love;
    }

    public void setLove(String love) {
        this.love = love;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getContentRule() {
        return contentRule;
    }

    public void setContentRule(String contentRule) {
        this.contentRule = contentRule;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getCreatorAvatar() {
        return creatorAvatar;
    }

    public void setCreatorAvatar(String creatorAvatar) {
        this.creatorAvatar = creatorAvatar;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getNoticeUrl() {
        return noticeUrl;
    }

    public void setNoticeUrl(String noticeUrl) {
        this.noticeUrl = noticeUrl;
    }

    public String getPlayBackStartTimne() {
        return playBackStartTimne;
    }

    public void setPlayBackStartTimne(String playBackStartTimne) {
        this.playBackStartTimne = playBackStartTimne;
    }

    public String getPlayBackEndTime() {
        return playBackEndTime;
    }

    public void setPlayBackEndTime(String playBackEndTime) {
        this.playBackEndTime = playBackEndTime;
    }

    public String getPlayBackUrl() {
        return playBackUrl;
    }

    public void setPlayBackUrl(String playBackUrl) {
        this.playBackUrl = playBackUrl;
    }

    public int getIsFakeHits() {
        return isFakeHits;
    }

    public void setIsFakeHits(int isFakeHits) {
        this.isFakeHits = isFakeHits;
    }

    public String getShareUrl() {
        return shareUrl;
    }

    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }

    public String getShareQrcode() {
        return shareQrcode;
    }

    public void setShareQrcode(String shareQrcode) {
        this.shareQrcode = shareQrcode;
    }

    public String getIsTop() {
        return isTop;
    }

    public void setIsTop(String isTop) {
        this.isTop = isTop;
    }

    public String getTopDeadTime() {
        return topDeadTime;
    }

    public void setTopDeadTime(String topDeadTime) {
        this.topDeadTime = topDeadTime;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getIsFollow() {
        return isFollow;
    }

    public void setIsFollow(int isFollow) {
        this.isFollow = isFollow;
    }

    public int getIsMultiAdress() {
        return isMultiAdress;
    }

    public void setIsMultiAdress(int isMultiAdress) {
        this.isMultiAdress = isMultiAdress;
    }

    public int getIsContent() {
        return isContent;
    }

    public void setIsContent(int isContent) {
        this.isContent = isContent;
    }

    public int getIsChatRoom() {
        return isChatRoom;
    }

    public void setIsChatRoom(int isChatRoom) {
        this.isChatRoom = isChatRoom;
    }

    public int getIsDescription() {
        return isDescription;
    }

    public void setIsDescription(int isDescription) {
        this.isDescription = isDescription;
    }

    public String getEncodeHlsUrl() {
        return encodeHlsUrl;
    }

    public void setEncodeHlsUrl(String encodeHlsUrl) {
        this.encodeHlsUrl = encodeHlsUrl;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.id);
        dest.writeValue(this.siteId);
        dest.writeString(this.chatroomId);
        dest.writeString(this.streamAddressName);
        dest.writeString(this.pushUrl);
        dest.writeString(this.hlsUrl);
        dest.writeString(this.rtmpUrl);
        dest.writeString(this.title);
        dest.writeString(this.digest);
        dest.writeString(this.coverPic);
        dest.writeString(this.advPic);
        dest.writeString(this.advUrl);
        dest.writeString(this.hits);
        dest.writeString(this.love);
        dest.writeString(this.type);
        dest.writeString(this.status);
        dest.writeString(this.contentRule);
        dest.writeString(this.createtime);
        dest.writeString(this.starttime);
        dest.writeString(this.endtime);
        dest.writeString(this.creator);
        dest.writeString(this.creatorAvatar);
        dest.writeString(this.author);
        dest.writeString(this.noticeUrl);
        dest.writeString(this.playBackStartTimne);
        dest.writeString(this.playBackEndTime);
        dest.writeString(this.playBackUrl);
        dest.writeInt(this.isFakeHits);
        dest.writeString(this.shareUrl);
        dest.writeString(this.shareQrcode);
        dest.writeString(this.isTop);
        dest.writeString(this.topDeadTime);
        dest.writeInt(this.number);
        dest.writeInt(this.isFollow);
        dest.writeInt(this.isMultiAdress);
        dest.writeTypedList(this.streamAdress);
        dest.writeInt(this.isContent);
        dest.writeInt(this.isChatRoom);
        dest.writeInt(this.isDescription);
        dest.writeString(this.encodeHlsUrl);
    }

    protected ActivityLiveBean(Parcel in) {
        this.id = (Integer) in.readValue(Integer.class.getClassLoader());
        this.siteId = (Integer) in.readValue(Integer.class.getClassLoader());
        this.chatroomId = in.readString();
        this.streamAddressName = in.readString();
        this.pushUrl = in.readString();
        this.hlsUrl = in.readString();
        this.rtmpUrl = in.readString();
        this.title = in.readString();
        this.digest = in.readString();
        this.coverPic = in.readString();
        this.advPic = in.readString();
        this.advUrl = in.readString();
        this.hits = in.readString();
        this.love = in.readString();
        this.type = in.readString();
        this.status = in.readString();
        this.contentRule = in.readString();
        this.createtime = in.readString();
        this.starttime = in.readString();
        this.endtime = in.readString();
        this.creator = in.readString();
        this.creatorAvatar = in.readString();
        this.author = in.readString();
        this.noticeUrl = in.readString();
        this.playBackStartTimne = in.readString();
        this.playBackEndTime = in.readString();
        this.playBackUrl = in.readString();
        this.isFakeHits = in.readInt();
        this.shareUrl = in.readString();
        this.shareQrcode = in.readString();
        this.isTop = in.readString();
        this.topDeadTime = in.readString();
        this.number = in.readInt();
        this.isFollow = in.readInt();
        this.isMultiAdress = in.readInt();
        this.streamAdress = in.createTypedArrayList(StreamAdress.CREATOR);
        this.isContent = in.readInt();
        this.isChatRoom = in.readInt();
        this.isDescription = in.readInt();
        this.encodeHlsUrl = in.readString();
    }

    public static final Creator<ActivityLiveBean> CREATOR = new Creator<ActivityLiveBean>() {
        @Override
        public ActivityLiveBean createFromParcel(Parcel source) {
            return new ActivityLiveBean(source);
        }

        @Override
        public ActivityLiveBean[] newArray(int size) {
            return new ActivityLiveBean[size];
        }
    };
}
